import { get, post, put, deletefn } from "../api/request";

//  查询钱包
export const getUserInfoWallet = params => get(`/v1/manager/yingshengWallet/getUserInfoWallet`, params) // WALLET_TERRACE_SHOW || WALLET_XIANGM_SHOW

// 身份证
export const postuploadWallet = params => post(`/v1/manager/yingshengWallet/upload`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

//  转账
export const posttransferInnerWallet = params => post(`/v1/manager/yingshengWallet/transferInner`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 新增
export const postcreateWalletWallet = params => post(`/v1/manager/yingshengWallet/createWallet`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 查询绑定银行卡
export const getUserInfoWalletBankWallet = params => get(`/v1/manager/yingshengWallet/getUserInfoWalletBank`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 绑定银行卡
export const postbindCardWallet = params => post(`/v1/manager/yingshengWallet/bindCard`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 解绑银行卡
export const postunbindCardWallet = params => post(`/v1/manager/yingshengWallet/unbindCard`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 个人钱包取钱到银行卡
export const postwithdrawWallet = params => post(`/v1/manager/yingshengWallet/withdraw`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

//-----明细
export const getUserInfoWalletTransferLogWallet = params => get(`/v1/manager/yingshengWallet/getUserInfoWalletTransferLog`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 支持银行
export const getqueryBankListWallet = params => get(`/v1/manager/yingshengWallet/queryBankList`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 查询乡米网钱包对应userid
export const getuserIdWallet = params => get(`/v1/manager/yingshengWallet/getuserId`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

// 内部转化外部
export const postMerchantPlatorm= params => post(`/v1/manager/yingshengWallet/merchantPlatorm`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC

export const postMerchantTo = params => post(`/v1/manager/yingshengWallet/merchantTo`, params) // WALLET_TERRACE_SHOW && WALLET_TERRACE_FUNC || WALLET_XIANGM_SHOW && WALLET_XIANGM_FUNC
